package com.training1.core.entity;

import java.math.BigDecimal;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Length;

import com.training1.core.common.entity.DataEntity;
@Alias("member")
public class MemberEntity extends DataEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Pattern(regexp="\\d{11}",message="{module.member.cellphone.error}")
	@NotNull(message="{notnull}")
	private String cellPhone;
	
	@Length(min=1,max=50,message="{module.member.name.error}")
	@NotNull(message="{notnull}")
	private String memberName;
	
	private Integer  memberType;
	
	private String loginToken;
	
	private Long tokenTime;
	
	private String password;
	
	private String userName;
	
	@Pattern(regexp="\\d{18}",message="{module.member.idcard.error}")
	@NotNull(message="{notnull}")
	private String idCardNumber;
	
	@Length(min=10,max=10,message="{module.member.birthday.error}")
	@NotNull(message="{notnull}")
	private String birthday;
	
	@NotNull(message="{notnull}")
	private Integer gender;
	
	@Length(min=1,max=100,message="{module.member.address.error}")
	@NotNull(message="{notnull}")
	private String familyAddress;
	
	@Pattern(regexp="\\d*",message="{module.member.bankcard.error}")
	@NotNull(message="{notnull}")
	private String bankCardId;
	
	@Length(min=1,max=50,message="{module.member.bankname.error}")
	@NotNull(message="{notnull}")
	private String bankName;
	
	@Pattern(regexp="\\d{11}",message="{module.member.cellphone.error}")
	@NotNull(message="{notnull}")
	private String cellphoneForBankCard;
	
	private Integer blackListFlag;
	
	@NotNull(message="{module.member.frontid.error}")
	private String frontPhotoOfIdcard;
	
	@NotNull(message="{module.member.backid.error}")
	private String backPhotoOfIdcard;
	
	@NotNull(message="{module.member.bankp.error}")
	private String photoOfBankCard;
	
	private String recommenderCellphone;
	
	
	private String branchId;
	
	private String blackListComments;
	
	private BigDecimal totalIncome;//总收益
	
	private BigDecimal avaibleCash;//可提现(余额)
	
	private BigDecimal cusumeCash;//消费基金(乐花)
	
	private BigDecimal tax;//税费
	
	private BigDecimal investmentCash;//理财基金(贴心宝)
	
	private Integer nodeCount;//代理权数量
	
	/*会员收货地址表字段*/
	/**
	 * 
	 */
	private Integer addId;//地址的id
	
	private String  startTime;
	private String  endTime;
	private String rechagreCash;
	private String recommendAward;
	private String a1Award;
	private String a2Award;
	private String a3Award;
	private String b1Award;
	private String b2Award;
	private String b3Award;
	private String dpBackAward;
	
	private String totalSum;
	private String avaibleSum;
	private String cusumeSum;
	private String investmentSum;
	private String taxSum;
	private String rechagreSum;
	private String recommendSum;
	private String a1Sum;
	private String a2Sum;
	private String a3Sum;
	private String b1Sum;
	private String b2Sum;
	private String b3Sum;
	private String dpBackSum;
	
	public Integer getAddId() {
		return addId;
	}
	public void setAddId(Integer addId) {
		this.addId = addId;
	}
	@NotNull(message="{notnull}")
	private String logisticsName;
	
	@Pattern(regexp="\\d{11}",message="{module.member.cellphone.error}")
	@NotNull(message="{notnull}")
	private String logisticsPhone;
	
	@Pattern(regexp="\\d{6}",message="{module.member.zip.error}")
	@NotNull(message="{notnull}")
	private String zipCode;
	
	@NotNull(message="{notnull}")
	private String province;
	
	@NotNull(message="{notnull}")
	private String city;
	
	@NotNull(message="{notnull}")
	private String district;
	
	/*收货地址*/
	@Length(min=1,max=100,message="{module.member.address.error}")
	@NotNull(message="{notnull}")
	private String address;
	
	@NotNull(message="{notnull}")
	private Integer isDefault;
	
	private String bankCode;
	
	private Integer userTrust;
	
	public Integer getUserTrust() {
		return userTrust;
	}
	public void setUserTrust(Integer userTrust) {
		this.userTrust = userTrust;
	}
	public Integer getMemberType() {
		return memberType;
	}
	public void setMemberType(Integer memberType) {
		this.memberType = memberType;
	}
	public String getLogisticsName() {
		return logisticsName;
	}
	public void setLogisticsName(String logisticsName) {
		this.logisticsName = logisticsName;
	}
	public String getLogisticsPhone() {
		return logisticsPhone;
	}
	public void setLogisticsPhone(String logisticsPhone) {
		this.logisticsPhone = logisticsPhone;
	}
	public String getZipCode() {
		return zipCode;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getDistrict() {
		return district;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Integer getIsDefault() {
		return isDefault;
	}
	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}
	public String getCellPhone() {
		return cellPhone;
	}
	public void setCellPhone(String cellPhone) {
		this.cellPhone = cellPhone;
	}
	public String getMemberName() {
		return memberName;
	}
	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}
	public String getLoginToken() {
		return loginToken;
	}
	public void setLoginToken(String loginToken) {
		this.loginToken = loginToken;
	}
	public Long getTokenTime() {
		return tokenTime;
	}
	public void setTokenTime(Long tokenTime) {
		this.tokenTime = tokenTime;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getIdCardNumber() {
		return idCardNumber;
	}
	public void setIdCardNumber(String idCardNumber) {
		this.idCardNumber = idCardNumber;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	public String getFamilyAddress() {
		return familyAddress;
	}
	public void setFamilyAddress(String familyAddress) {
		this.familyAddress = familyAddress;
	}
	public String getBankCardId() {
		return bankCardId;
	}
	public void setBankCardId(String bankCardId) {
		this.bankCardId = bankCardId;
	}
	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	public String getCellphoneForBankCard() {
		return cellphoneForBankCard;
	}
	public void setCellphoneForBankCard(String cellphoneForBankCard) {
		this.cellphoneForBankCard = cellphoneForBankCard;
	}
	public Integer getBlackListFlag() {
		return blackListFlag;
	}
	public void setBlackListFlag(Integer blackListFlag) {
		this.blackListFlag = blackListFlag;
	}
	public String getFrontPhotoOfIdcard() {
		return frontPhotoOfIdcard;
	}
	public void setFrontPhotoOfIdcard(String frontPhotoOfIdcard) {
		this.frontPhotoOfIdcard = frontPhotoOfIdcard;
	}
	public String getBackPhotoOfIdcard() {
		return backPhotoOfIdcard;
	}
	public void setBackPhotoOfIdcard(String backPhotoOfIdcard) {
		this.backPhotoOfIdcard = backPhotoOfIdcard;
	}
	public String getPhotoOfBankCard() {
		return photoOfBankCard;
	}
	public void setPhotoOfBankCard(String photoOfBankCard) {
		this.photoOfBankCard = photoOfBankCard;
	}
	public String getRecommenderCellphone() {
		return recommenderCellphone;
	}
	public void setRecommenderCellphone(String recommenderCellphone) {
		this.recommenderCellphone = recommenderCellphone;
	}
	public String getBranchId() {
		return branchId;
	}
	public void setBranchId(String branchId) {
		this.branchId = branchId;
	}
	public String getBlackListComments() {
		return blackListComments;
	}
	public void setBlackListComments(String blackListComments) {
		this.blackListComments = blackListComments;
	}
	public BigDecimal getTotalIncome() {
		return totalIncome;
	}
	public void setTotalIncome(BigDecimal totalIncome) {
		this.totalIncome = totalIncome;
	}
	public BigDecimal getAvaibleCash() {
		return avaibleCash;
	}
	public void setAvaibleCash(BigDecimal avaibleCash) {
		this.avaibleCash = avaibleCash;
	}
	public BigDecimal getCusumeCash() {
		return cusumeCash;
	}
	public void setCusumeCash(BigDecimal cusumeCash) {
		this.cusumeCash = cusumeCash;
	}
	public BigDecimal getInvestmentCash() {
		return investmentCash;
	}
	public void setInvestmentCash(BigDecimal investmentCash) {
		this.investmentCash = investmentCash;
	}
	public BigDecimal getTax() {
		return tax;
	}
	public void setTax(BigDecimal tax) {
		this.tax = tax;
	}
	public String getBankCode() {
		return bankCode;
	}
	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getNodeCount() {
		return nodeCount;
	}
	public void setNodeCount(Integer nodeCount) {
		this.nodeCount = nodeCount;
	}
	
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getRechagreCash() {
		return rechagreCash;
	}
	public void setRechagreCash(String rechagreCash) {
		this.rechagreCash = rechagreCash;
	}
	public String getRecommendAward() {
		return recommendAward;
	}
	public void setRecommendAward(String recommendAward) {
		this.recommendAward = recommendAward;
	}
	public String getA1Award() {
		return a1Award;
	}
	public void setA1Award(String a1Award) {
		this.a1Award = a1Award;
	}
	public String getA2Award() {
		return a2Award;
	}
	public void setA2Award(String a2Award) {
		this.a2Award = a2Award;
	}
	public String getA3Award() {
		return a3Award;
	}
	public void setA3Award(String a3Award) {
		this.a3Award = a3Award;
	}
	public String getB1Award() {
		return b1Award;
	}
	public void setB1Award(String b1Award) {
		this.b1Award = b1Award;
	}
	public String getB2Award() {
		return b2Award;
	}
	public void setB2Award(String b2Award) {
		this.b2Award = b2Award;
	}
	public String getB3Award() {
		return b3Award;
	}
	public void setB3Award(String b3Award) {
		this.b3Award = b3Award;
	}
	public String getDpBackAward() {
		return dpBackAward;
	}
	public void setDpBackAward(String dpBackAward) {
		this.dpBackAward = dpBackAward;
	}
	public String getTotalSum() {
		return totalSum;
	}
	public void setTotalSum(String totalSum) {
		this.totalSum = totalSum;
	}
	public String getAvaibleSum() {
		return avaibleSum;
	}
	public void setAvaibleSum(String avaibleSum) {
		this.avaibleSum = avaibleSum;
	}
	public String getCusumeSum() {
		return cusumeSum;
	}
	public void setCusumeSum(String cusumeSum) {
		this.cusumeSum = cusumeSum;
	}
	public String getInvestmentSum() {
		return investmentSum;
	}
	public void setInvestmentSum(String investmentSum) {
		this.investmentSum = investmentSum;
	}
	public String getTaxSum() {
		return taxSum;
	}
	public void setTaxSum(String taxSum) {
		this.taxSum = taxSum;
	}
	public String getRechagreSum() {
		return rechagreSum;
	}
	public void setRechagreSum(String rechagreSum) {
		this.rechagreSum = rechagreSum;
	}
	public String getRecommendSum() {
		return recommendSum;
	}
	public void setRecommendSum(String recommendSum) {
		this.recommendSum = recommendSum;
	}
	public String getA1Sum() {
		return a1Sum;
	}
	public void setA1Sum(String a1Sum) {
		this.a1Sum = a1Sum;
	}
	public String getA2Sum() {
		return a2Sum;
	}
	public void setA2Sum(String a2Sum) {
		this.a2Sum = a2Sum;
	}
	public String getA3Sum() {
		return a3Sum;
	}
	public void setA3Sum(String a3Sum) {
		this.a3Sum = a3Sum;
	}
	public String getB1Sum() {
		return b1Sum;
	}
	public void setB1Sum(String b1Sum) {
		this.b1Sum = b1Sum;
	}
	public String getB2Sum() {
		return b2Sum;
	}
	public void setB2Sum(String b2Sum) {
		this.b2Sum = b2Sum;
	}
	public String getB3Sum() {
		return b3Sum;
	}
	public void setB3Sum(String b3Sum) {
		this.b3Sum = b3Sum;
	}
	public String getDpBackSum() {
		return dpBackSum;
	}
	public void setDpBackSum(String dpBackSum) {
		this.dpBackSum = dpBackSum;
	}
}
